/**
 * 
 */
package wsepForum.persistance.exceptions;

/**
 * @author Ofir Tam & Ori Ossmy
 * Exception format in case invalid element id was sent when required to set an element to the DB
 */
public class WrongUserNameException extends Exception {

	/**
	 * exception's serial version ID.
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * the wrong user name
	 */
	private String wrongUsername;
	
	/**
	 * exception constructor
	 * @param res - the exception reason
	 */
	public WrongUserNameException(String res, String user) {
		super(res);
		this.wrongUsername = user;
	}
	
	public String getWrongUsername(){
		return this.wrongUsername;
	}

	
}
